package com.bdqn.service;

import com.bdqn.entity.Images;
import com.bdqn.entity.UserWithBLOBs;
import com.bdqn.util.Page;
import com.bdqn.util.Result;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author SIMBA1949
 * @Date 2020/3/3 16:13
 */
public interface AlbumService {

    public Result addUpdateAlbum(String blog, Images img, CommonsMultipartFile[] file, HttpServletRequest request);

    public Page<Images> getPageAlbum(Boolean draft, String timeRangae,
                                     String title, Integer pageIndex, Integer pageSize, UserWithBLOBs user);

    public Images getAlbumById(String uuid);

    public Result deleteImg(String uuidImg, HttpServletRequest request);

    public Result updateCover(String uuid,CommonsMultipartFile file,HttpServletRequest request);

    public Result updateStatus(String flag, String uuid, HttpServletRequest request);

}